<template>
  <el-card class="box-card">
    <p class="title">会员专区</p>
    <el-row :gutter="20">
      <el-col :span="6">
        <el-row>
          <el-avatar :size="40"
                     :src="'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'" />
          <span class="name">
            {{user.name}}&nbsp;<el-tag size="small">&nbsp;Lv.{{user.level}}</el-tag>
            <br/>
            <el-link :underline="false" v-if="!user.member">开通会员尊享十大特权</el-link>
          </span>
        </el-row>
      </el-col>
      <el-col :span="7">
        <span class="describe">
          <el-icon><VideoCameraFilled /></el-icon>
          <span>以下<span>{{total}}</span>个会员专区课程<br/>全部免费学习</span>
        </span>
      </el-col>
      <el-col :span="7">
        <span class="describe">
          <el-icon><Ticket /></el-icon>
          <span>购买非会员专区课程<br/>可获会员立减优惠</span>
        </span>
      </el-col>
      <el-col :span="4">
        <el-button round size="small" color="#f93684">立即开通</el-button>
        <p class="entry">查看/开通<el-icon><ArrowRight /></el-icon></p>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
export default {
  name: "member",
  data() {
    return {
      user: {
        name: 'xx',
        member: false,
        level: 1
      },
      total: 713
    }
  }
}
</script>

<style scoped>
  .box-card {
    padding: 0;
  }
  .el-card {
    --el-card-padding: 10px !important;
  }
  .title {
    font-size: small;
    line-height: 30px;
    padding-left: 20px;
    margin-bottom: 10px;
  }
  .el-row {
    height: 65px;
  }
  .el-avatar {
    margin-left: 20px;
    margin-top: -0.25em
  }
  .name {
    margin-left: 3px;
  }
  .name .el-tag {
    background: #f93684;
    color: white;
    font-style: italic
  }
  .name .el-link {
    color: #f93684;
    font-size: 10px;
    line-height: 10px;
    margin-top: -0.25em
  }

  .describe {
    display: flex
  }
  .describe .el-icon {
    font-size: xxx-large;
    color: #f93684;
    float: left
  }
  .describe span {
    float: right;
    text-align: center;
    margin-left: 10px;
    margin-top: 4px;
    font-size: 14px;
  }
  .describe span span {
    color: #f93684
  }

  .entry {
    font-size: 10px;
    color: #c1c1c1;
    margin-left: 5px;
    margin-top: 5px;
    cursor: pointer;
  }
</style>